//
// CVegetableBlendLayerModel.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CVector;

public class CVegetableBlendLayerModel extends CTransform {
  private long swigCPtr;

  public CVegetableBlendLayerModel(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CVegetableBlendLayerModel_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CVegetableBlendLayerModel obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        throw new UnsupportedOperationException("C++ destructor does not have public access");
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public static void registerBasic() {
    nel3dJNI.CVegetableBlendLayerModel_registerBasic();
  }

  public void setVegetableManager(CVegetableManager value) {
    nel3dJNI.CVegetableBlendLayerModel_VegetableManager_set(swigCPtr, this, CVegetableManager.getCPtr(value), value);
  }

  public CVegetableManager getVegetableManager() {
    long cPtr = nel3dJNI.CVegetableBlendLayerModel_VegetableManager_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CVegetableManager(cPtr, false);
  }

  public void setSortBlocks(SWIGTYPE_p_std__vectorT_NL3D__CVegetableSortBlock_p_t value) {
    nel3dJNI.CVegetableBlendLayerModel_SortBlocks_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_NL3D__CVegetableSortBlock_p_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_NL3D__CVegetableSortBlock_p_t getSortBlocks() {
    long cPtr = nel3dJNI.CVegetableBlendLayerModel_SortBlocks_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_NL3D__CVegetableSortBlock_p_t(cPtr, false);
  }

  public void setWorldPos(CVector pos) {
    nel3dJNI.CVegetableBlendLayerModel_setWorldPos(swigCPtr, this, CVector.getCPtr(pos), pos);
  }

  public boolean clip() {
    return nel3dJNI.CVegetableBlendLayerModel_clip(swigCPtr, this);
  }

  public void traverseRender() {
    nel3dJNI.CVegetableBlendLayerModel_traverseRender(swigCPtr, this);
  }

}
